import request from '@/utils/request'

export default {
  // 分页查询课程评论
  getCommentsByCourseId(courseId, currentPage, size) {
    return request({
      url: `/eduService/comment/getCommentsByCourseId/${courseId}/${currentPage}/${size}`,
      method: 'get'
    })
  },

  // 添加评论
  addComment(comment) {
    return request({
      url: `/eduService/comment/addComment`,
      method: 'post',
      data: comment
    })
  }

}
